import java.util.Arrays;
import java.util.List;
import java.util.Random;

/**
 * @date 2022/9/14 13:32
 * @author: Akie
 * @description: 六七食堂的菜品

 */

public class SixAndSevenMall {
    private String[] str6 = {"麻辣烫", "抄手", "小吃+饼","山西面", "掉渣饼", "热干面", "卤汁饭", "包子花卷馒头"};
    private List<String> list6 = Arrays.asList(str6);
    private String[] str7 = {"麻辣烫","饺子", "罗西混", "猪肚鸡", "铁板饭","麻辣香锅"};
    private List<String> list7 = Arrays.asList(str7);

    public int getMall(){
        double i =(Math.random());
        int num = 0;
        if (i < 0.5){
            num = 6;
        }else {
            num = 7;
        }
        return num;
    }

    public String getMeal6() {
        Random rand = new Random();
        String meal = list6.get(rand.nextInt(list6.size()));
        return meal;
    }
    public String getMeal7() {
        Random rand = new Random();
        String meal = list7.get(rand.nextInt(list7.size()));
        return meal;
    }
}
